package com.baicaixiaozhan.springsecurityswaggerdemo.pojo;

/**
 * DESC: 用户 允许可操作项 (功能)
 *
 * @author : baicaixiaozhan
 * @since : 2020-11-05
 */
public enum PersonPermission {
    // 开发 可读
    DEVELOPMENT_READ("development:read"),
    // 开发 可测试
    DEVELOPMENT_TEST("development:test"),
    // 管理员 可读
    ADMIN_READ("admin:read"),
    // 管理员 可测试
    ADMIN_TEST("admin:test"),
    // 消费者(用户) 可读
    CONSUMER_READ("consumer:read");

    private final String permission;

    PersonPermission(String permission) {
        this.permission = permission;
    }

    public String getPermission() {
        return permission;
    }
}
